home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / sb_bust.swf / scripts / DefineSprite_1132 / frame_1 / PlaceObject2_2_284 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2006-07-26  |  2KB  |  89 lines

  1. onClipEvent(load){
  2.    _global.C = this;
  3.    G_Items = new Array();
  4.    G_RoundOver = false;
  5.    G_Pause = false;
  6.    G_CreatePlayer = function(l_RefMov)
  7.    {
  8.       if(this[l_RefMov._name] == null)
  9.       {
  10.          this[l_RefMov._name] = new PlayerObj(l_RefMov);
  11.       }
  12.    };
  13.    G_CreateEnemy1 = function(l_RefMov)
  14.    {
  15.       if(this[l_RefMov._name] == null)
  16.       {
  17.          this[l_RefMov._name] = new Enemy1Obj(l_RefMov);
  18.       }
  19.    };
  20.    G_CreateEnemy2 = function(l_RefMov)
  21.    {
  22.       if(this[l_RefMov._name] == null)
  23.       {
  24.          this[l_RefMov._name] = new Enemy2Obj(l_RefMov);
  25.       }
  26.    };
  27.    G_CreateEnemy3 = function(l_RefMov)
  28.    {
  29.       if(this[l_RefMov._name] == null)
  30.       {
  31.          this[l_RefMov._name] = new Enemy3Obj(l_RefMov);
  32.       }
  33.    };
  34.    G_CreateEnemy4 = function(l_RefMov)
  35.    {
  36.       if(this[l_RefMov._name] == null)
  37.       {
  38.          this[l_RefMov._name] = new Enemy4Obj(l_RefMov);
  39.       }
  40.    };
  41.    G_CreateEnemy5 = function(l_RefMov)
  42.    {
  43.       if(this[l_RefMov._name] == null)
  44.       {
  45.          this[l_RefMov._name] = new Enemy5Obj(l_RefMov);
  46.       }
  47.    };
  48.    G_CreateEnemy6 = function(l_RefMov)
  49.    {
  50.       if(this[l_RefMov._name] == null)
  51.       {
  52.          this[l_RefMov._name] = new Enemy6Obj(l_RefMov);
  53.       }
  54.    };
  55.    G_CreateGarry = function(l_RefMov)
  56.    {
  57.       if(this[l_RefMov._name] == null)
  58.       {
  59.          this[l_RefMov._name] = new GarryObj(l_RefMov);
  60.       }
  61.    };
  62.    G_DoPause = function(l_Action)
  63.    {
  64.       G_Pause = true;
  65.       if(l_Action == "OpenMenu")
  66.       {
  67.          stopAllSounds();
  68.          _global.Sounds.PlaySound("Nage6",100,1);
  69.          _global.Sounds.PlaySound("PackMus",35,10000);
  70.       }
  71.       _global.C.Player.RefMov.State.stop();
  72.       for(var _loc2_ in G_Items)
  73.       {
  74.          _global.C[G_Items[_loc2_]].RefMov.State.stop();
  75.       }
  76.    };
  77.    G_DoUnPause = function()
  78.    {
  79.       G_Pause = false;
  80.       _global.Sounds.StopSound("PackMus");
  81.       _global.Sounds.PlaySound("InGameMus",35,10000);
  82.       _global.C.Player.RefMov.State.play();
  83.       for(var _loc2_ in G_Items)
  84.       {
  85.          _global.C[G_Items[_loc2_]].RefMov.State.play();
  86.       }
  87.    };
  88. }
  89.